<?php

class Admin_Model_DbTable_Users extends Zend_Db_Table_Abstract {
	
	protected $_name = 'users';
	
  public function getAllUsers() {
  	
  	$db = Zend_Db_Table_Abstract::getDefaultAdapter();
  	$selectUsers = new Zend_Db_Select($db);
  	$selectUsers->from('users')->order('username');
  	
  	return $selectUsers;
  }
  
  /**
   * This method deletes a particular user from the database
   * @param unknown_type $id
   */
  public function deleteUser($id){
  	
	$this->delete('id =' . (int)$id); 

  }
}